package com.example.testweb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

@SpringBootApplication
public class TestWebApplication {

	public static void main(String[] args) {
		SpringApplication.run(TestWebApplication.class, args);
//		ArrayList<Integer> objects = new ArrayList<>();
//		for(int i = 0;i<3;i++){
//			objects.add(i);
//		}
		List<Integer> collect = Stream.of(1, 2, 3).collect(Collectors.toList());
		System.out.println(Arrays.toString(collect.toArray()));



	}


}
